package com.cooper.common.exception;

import com.cooper.common.constant.ExceptionCodes;
import org.apache.logging.log4j.Level;

public class GeneralException extends RuntimeException {

    protected Level logLevel = Level.ERROR;
    protected int code = ExceptionCodes.ERROR;

    public int getCode() {
        return code;
    }

    public GeneralException(String message){
        super(message);
    }

    public GeneralException(String message, Throwable cause){
        super(message, cause);
    }

    public Level getLogLevel() {
        return logLevel;
    }
}
